<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/2/21
 * Time: 10:52
 */

namespace app\admin\validate;


class User extends BaseValidate
{
    protected $rule =   [
        ['username', 'require|length:3,25|unique', '用户名不能为空|用户名在3到25之间|用户名已存在'],
        ['password', 'require|length:6,20', '登录密码不能为空|登录密码位数不能少于6位或者大于20位'],
        ['tel', 'checkName:tel|unique:member', '手机号码格式不正确|该手机已注册'],
    ];
}